The python-cdb extension module is an adaptation of D. J. Bernstein's
constant database package (see http://cr.yp.to/cdb.html).

cdb files are mappings of keys to values, designed for wickedly fast
lookups and atomic updates.  This module mimics the normal cdb
utilities, cdb(get|dump|make), via convenient, high-level Python
objects.
